﻿using System.ComponentModel.DataAnnotations;

namespace EMC.VISITOR.Plugin.GoView;

    /// <summary>
    /// 大屏Echarts配置基础输入参数
    /// </summary>
    public class GoViewProEchartsConfigBaseInput
    {
        /// <summary>
        /// 关联项目Id
        /// </summary>
        public virtual long? GoViewProId { get; set; }
        
        /// <summary>
        /// 大屏类型
        /// </summary>
        public virtual BigScreenType? BigType { get; set; }
        
        /// <summary>
        /// Echart图表配置
        /// </summary>
        public virtual string? Config { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
    }

    /// <summary>
    /// 大屏Echarts配置分页查询输入参数
    /// </summary>
    public class GoViewProEchartsConfigInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string SearchKey { get; set; }

            /// <summary>
            /// 关联项目Id
            /// </summary>
            public long? GoViewProId { get; set; }
            
              /// <summary>
             /// 大屏类型
             /// </summary>
             public BigScreenType? BigType { get; set; }
             
    }

    /// <summary>
    /// 大屏Echarts配置增加输入参数
    /// </summary>
    public class AddGoViewProEchartsConfigInput : GoViewProEchartsConfigBaseInput
    {
        /// <summary>
        /// Echart图表配置
        /// </summary>
        [Required(ErrorMessage = "Echart图表配置不能为空")]
        public override string? Config { get; set; }
        
    }

    /// <summary>
    /// 大屏Echarts配置删除输入参数
    /// </summary>
    public class DeleteGoViewProEchartsConfigInput : BaseIdInput
    {
    }

    /// <summary>
    /// 大屏Echarts配置更新输入参数
    /// </summary>
    public class UpdateGoViewProEchartsConfigInput : GoViewProEchartsConfigBaseInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public long? Id { get; set; }
        
    }

    /// <summary>
    /// 大屏Echarts配置主键查询输入参数
    /// </summary>
    public class QueryByIdGoViewProEchartsConfigInput : DeleteGoViewProEchartsConfigInput
    {

    }
